package main.dao;

import java.util.List;

import main.entity.MessageVO;

import org.springframework.stereotype.Repository;

@SuppressWarnings("unchecked")
@Repository("msgDAO")
public class MsgDAO extends BaseDAO<MessageVO> {
	
	public List<?> getMsgByUID(Integer uID){
		String queryString = "FROM main.entity.MessageVO msg WHERE msg.uIDFrom ="+uID;
		return getHibernateTemplate().find(queryString);
	}
	
}
